use inc::Module::Install;

# Define metadata
name           'Farsail';
all_from       'lib/Farsail.pm';

requires 'AppConfig'                 => '1.66';
requires 'Class::Accessor'           => '0.31';
requires 'Class::Singleton'          => '1.14';
requires 'DBI'                       => '1.607';
requires 'DateTime'                  => '0.4304';
requires 'DateTime::Format::Natural' => '0.71';
requires 'File::Slurp'               => '9999.13';
requires 'IPC::Run3'                 => '0.037';
requires 'Log::Log4perl'             => '1.14';
requires 'Path::Class'               => '0.16';
requires 'Return::Value'             => '1.302';
requires 'Term::Prompt'              => '1.04';
requires 'Test::MockObject'          => '1.08';
requires 'XML::Simple'               => '2.18';
requires 'YAML'                      => '0.66';
requires 'version'                   => '0.50';

recommends 'DBD::Pg' => '2.8.1',

test_requires  'Test::More'  => '0.42';

no_index       'directory'   => 't';

install_script 'scripts/farsail_do';
install_script 'scripts/farsail_run';
install_script 'scripts/farsail_mgr';
install_script 'scripts/farsail_mon';

auto_install();

WriteAll;
